<div class="rTemplates view">
<h2><?php  __('R Template');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $rTemplate['RTemplate']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $rTemplate['RTemplate']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit R Template', true), array('action' => 'edit', $rTemplate['RTemplate']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete R Template', true), array('action' => 'delete', $rTemplate['RTemplate']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $rTemplate['RTemplate']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List R Templates', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New R Template', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List R Review Layouts', true), array('controller' => 'r_review_layouts', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New R Review Layout', true), array('controller' => 'r_review_layouts', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related R Review Layouts');?></h3>
	<?php if (!empty($rTemplate['RReviewLayout'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('R Customer Site Id'); ?></th>
		<th><?php __('R Template Id'); ?></th>
		<th><?php __('Pages'); ?></th>
		<th><?php __('Colors'); ?></th>
		<th><?php __('Photos Due'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($rTemplate['RReviewLayout'] as $rReviewLayout):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $rReviewLayout['id'];?></td>
			<td><?php echo $rReviewLayout['r_customer_site_id'];?></td>
			<td><?php echo $rReviewLayout['r_template_id'];?></td>
			<td><?php echo $rReviewLayout['pages'];?></td>
			<td><?php echo $rReviewLayout['colors'];?></td>
			<td><?php echo $rReviewLayout['photos_due'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'r_review_layouts', 'action' => 'view', $rReviewLayout['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'r_review_layouts', 'action' => 'edit', $rReviewLayout['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'r_review_layouts', 'action' => 'delete', $rReviewLayout['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $rReviewLayout['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New R Review Layout', true), array('controller' => 'r_review_layouts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
